<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Imperial Dragon菜单抓取器</title>
    <style>
      body {
        width: 300px;
        padding: 10px;
        font-family: Arial, sans-serif;
      }
      button {
        width: 100%;
        padding: 8px;
        margin: 5px 0;
        background-color: #4caf50;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
      }
      button:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
      }
      #status {
        margin: 10px 0;
        padding: 10px;
        border-radius: 4px;
        background-color: #f5f5f5;
        min-height: 20px;
      }
      .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
      }
      .close-btn {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        padding: 0 5px;
        color: #666;
        width: auto;
      }
      .close-btn:hover {
        color: #000;
      }
      #downloadBtn {
        background-color: #2196f3;
      }
      #downloadBtn:hover {
        background-color: #0b7dda;
      }
    </style>
  </head>
  <body>
    <div class="header">
      <h2>菜单数据抓取</h2>
      <button class="close-btn" id="closeBtn">×</button>
    </div>
    <button id="scrapeBtn">抓取菜单数据</button>
    <button id="downloadBtn" style="display: none">下载数据</button>
    <div id="status">点击"抓取菜单数据"按钮开始</div>
    <script src="popup.js"></script>
  </body>
</html>
